package com.example.xwcommon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@TableName("users")
public class User implements Serializable {
    @TableId(value = "user_id")
    private Integer userId;
    @TableField(value = "user_nickname")
    private String nickname;
    @TableField(value = "user_loginname")
    private String loginName;
    @TableField(value = "user_loginpwd")
    private String userPassword;
    @TableField(value = "user_photo")
    private String photo;
    @TableField(value = "user_score")
    private Integer score;
    @TableField(value = "user_attentioncount")
    private Integer attentionCount;
    @TableField(value = "user_state")
    private Integer state;

    @TableField(exist = false)
    private Map<String, Object> map=new HashMap<>();

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String logiNname) {
        this.loginName = logiNname;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getAttentionCount() {
        return attentionCount;
    }

    public void setAttentionCount(Integer attentionCount) {
        this.attentionCount = attentionCount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
